package com.study.controller;

import com.study.VideoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author chenyeqing
 * @date 2021/9/4 17:15
 */
@Api(value = "下载特定网站的视频", tags = "视频下载")
@Controller
public class DownLoadbx008 {

    @Autowired
    private VideoService videoService;

    @ApiOperation("下载视频")
    @GetMapping("/download")
    @ApiImplicitParams(
            @ApiImplicitParam(dataType = "string", name = "url", value = "角色名称", required = true, defaultValue = "")
    )
    public void hello(@RequestParam String url) {
        videoService.test01("http://bx111.xyz/video?param=" + url);
    }

}
